package org.ielts.domain.base;

import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.ManyToOne;

import org.ielts.domain.Atom;

@Entity
public class Classroom extends Atom {
	@Override
	public String toString() {
		return this.getTitle();
	}

	public Campus getCampus() {
		return campus;
	}

	public void setCampus(Campus campus) {
		this.campus = campus;
	}

	@ManyToOne(fetch = FetchType.EAGER)
	private Campus campus;
}
